<?php
require_once($_SERVER['DOCUMENT_ROOT'].'/ukkepuk/source/php/classes/model/AbstractEntity.php'); 

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of KidReport
 *
 * @author virtual
 */
class KidReport extends AbstractEntity {
    
    
    private $id;
    private $kidsId;
    private $report;
    private $timestamp;
    
    public function __construct(){
        $this->addTagAsChild("report");
    }
    
    public function getId() {  return $this->id;    }
    public function getKidsId() {  return $this->kidsId;    }
    public function getReport() {  return $this->report;    }
    public function getTimestamp() {  return $this->timestamp;    }
    
    public function setId($id) { $this->id = $id; }
    public function setKidsId($kidsId) { $this->kidsId = $kidsId; }
    public function setReport($report) { $this->report = $report; }
    public function setTimestamp($timestamp) { $this->timestamp = $timestamp; }
    
    public function setTime($time) {
        $this->timestamp = CalendarUtils::createDateFromTime($time);
    }
    public function getTimestampString() {
        return CalendarUtils::transformDateToTimestamp($this->timestamp);
    }
    public function getTime() {
        return CalendarUtils::transformDateToTime($this->timestamp);
    }
    
    public function getDateKey() {
        return CalendarUtils::transformDateToDatekey($this->timestamp);
    }
}

?>
